#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->pushButton_right->setToolTip("这是正确的");
    ui->pushButton_right->setToolTipDuration(2000);

    ui->pushButton_wrong->setToolTip("这是错误的");
    ui->pushButton_wrong->setToolTipDuration(4000);
}

Widget::~Widget()
{
    delete ui;
}

